<template>
  <div class="table-page-search-wrapper">
    <el-form :model="searchForm" ref="searchForm" label-width="100px" class="demo-ruleForm">
      <el-row :gutter="10">
        <el-col :md="6" :sm="12" :xs="24" style="padding:0 8px;">
          <el-form-item label="渠道名称:">
            <el-input v-model="searchForm.companyName" placeholder="请输入渠道名称" style="width:100%" />
          </el-form-item>
        </el-col>
        <el-col :md="6" :sm="12" :xs="24" style="padding:0 8px;">
          <el-form-item label="渠道类型:">
            <el-select v-model="searchForm.channelType" placeholder="请选择渠道类型" style="width:100%">
              <el-option
                v-for="item in yetaiList"
                :key="item.value"
                :value="item.value"
                :label="item.label"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :md="6" :sm="12" :xs="24" style="padding:0 8px;">
          <el-form-item label="状态:">
            <el-select v-model="searchForm.status" placeholder="请选择状态" style="width:100%">
              <el-option
                v-for="item in zhuangtaiList"
                :key="item.value"
                :value="item.value"
                :label="item.label"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :md="6" :sm="12" :xs="24" style="padding:0 8px;">
          <div style="margin-left:30px">
            <el-button type="primary" icon="el-icon-search" @click="searchAction()">查询</el-button>
            <el-button icon="el-icon-refresh" @click="resetSearch()" style="margin-left: 8px;">重置</el-button>
          </div>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>
<script>
export default {
  name: "search",
  data() {
    return {
      zhuangtaiList: [
        {
          label: "停用",
          value: "01",
        },
        {
          label: "启用",
          value: "00",
        },
      ], //zhaungt
      yetaiList: [
        {
          label: "平台",
          value: "00",
        },
        {
          label: "代理商",
          value: "02",
        },
        {
          label: "分公司",
          value: "01",
        },
      ],
      searchForm: {},
    };
  },
  methods: {
    searchAction() {
      //执行搜索
      this.$emit("search");
    },
    resetSearch() {
      this.searchForm = {};
      this.$emit("resetSearch");
    },
    getSearchForm() {
      //获取高级搜索条件
      return {
        ...this.searchForm,
      };
    },
  },
};
</script>


<style lang="less">
</style>>
